'''
Created on 15/03/2010

@author: igonzalez
'''

from photoLoader import *
from videoLoader import *
from placeLoader import *

#this is a module to use the Factory Pattern

class CgeoNodeGenFactory(object):
    '''
    classdocs
    '''

    @staticmethod
    def create_generator(category_name):
        category_name = str(category_name.lower())
        if category_name == 'place':
            return CplaceLoader()
        elif category_name == 'hotel':
            return CplaceLoader()
        elif category_name == 'image':
            return CphotoLoader()
        elif category_name == 'video':
            return CvideoLoader()